Page({
    data:{
        activeIndex:0,
        isLoading:true
    },
    changeIndex(e){
        this.setData({
           activeIndex: e.mark.index
        })
    },
    onEnd(){
        console.log('触底了');
    },
    onLoad(){
        console.log('数据加载中。。。');
        setTimeout(() => {
            this.setData({
                isLoading:false
            })
        }, 2000);
    },
    fn1(e){console.log(e);},
    fn2(e){console.log(e);},
    fn3(e){console.log(e);},
    fn4(e){console.log(e);}
});